package jse.test20160419Extend;

import java.math.BigDecimal;

import org.junit.Test;



public class TestExtends {
	
	 @Test
	public void test() {
		
		 Employee employee = new Employee("康康",new BigDecimal(8000));
		 
		 Manager manager = new Manager();
		 manager.setName("汪汪");
		 manager.setBonus(new BigDecimal(15000));
		 manager.setSalary(new BigDecimal(15000));
		 
		 System.out.println(employee.getName()+"\n"+employee.getSalary()+"\n");
		 System.out.println(manager.getName()+"\n"+manager.getSalary()+"\n"+manager.getBonus());
		 
	}
}
